From 497ff155b39ea6f8f56bf6108b89e1c87656dff4 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Wed, 7 Dec 2005 11:47:46 +0000 Subject: [PATCH] Remove timeout on select -- there is no need for it, since we don't do anything in the main loop except service I/O. Signed-off-by: Ewan Mellor --- tools/console/daemon/io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index 90422557c8..4587c5f7db 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -545,7 +545,6 @@ void handle_io(void) do { struct domain *d, *n; - struct timeval tv = { 100, 0 }; int max_fd = -1; FD_ZERO(&readfds); @@ -570,7 +569,7 @@ void handle_io(void) } } - ret = select(max_fd + 1, &readfds, &writefds, 0, &tv); + ret = select(max_fd + 1, &readfds, &writefds, 0, NULL); if (FD_ISSET(xs_fileno(xs), &readfds)) handle_xs(xs_fileno(xs)); -- 2.30.2